<?php
class TemplateManager extends SmartyML {
	
	protected static $_instance;
	
	protected function __construct() {}
	
	public static function getInstance() {
		if(!self::$_instance instanceof self) {
			self::$_instance = new self;
			
			#Defining default variables...
			self::$_instance->cache_dir    = CACHE_DIR;
			self::$_instance->compile_dir  = COMPILE_DIR;
			self::$_instance->config_dir   = CONFIG_DIR;
			self::$_instance->template_dir = TEMPLATES_DIR;
		
		}
		
		return self::$_instance;
	}
	
	
}
?>